import { get, post,post2 } from './http'
export const queryCourseList = params => post('/door/course/queryCourseList', params)//热点专题列表
export const queryCourseType = params => post('/door/course/queryCourseType', params)//热点专题类型
export const queryCourseOne = id => post('/door/course/queryOne/'+ id)//课程详情
export const queryWatch = params => post('/door/course/queryWatch', params)//查询观看记录
export const insertWatch = params => post('/door/course/insertWatch', params)//新增观看记录
export const updateWatch = params => post('/door/course/updateWatch', params)//更新观看记录
export const updatePageViews = params => post('/door/course/updatePageViews', params)//课程浏览量+1
export const queryCourseNote = params => post('/door/courseNote/query', params)//笔记列表
export const courseNoteInsert = params => post('/door/courseNote/insert', params)//新增笔记
export const courseNoteUpdate = params => post('/door/courseNote/update', params)//修改笔记
export const updateEachPeriod = params => post('/door/course/updateEachPeriod', params)//用户加课时
export const insertIntegral = params => post('/door/course/insertIntegral', params)//用户加积分

export const liveSelectLiveList = params => post('/door/live/selectLiveList',params)//直播课程
export const livejudgeLive = params => post('/door/live/judgeLive',params)//是否有直播观看权限
export const liveQueryOne = id => post('/door/live/queryOne/'+id)//直播详情
export const updatePageViewsLive = params => post('/door/live/updatePageViews',params)//直播浏览量+1
export const liveComment = params => post('/door/liveComment/query',params)//直播互动查询
export const liveCommentinsert = params => post('/door/liveComment/insert',params)//新增直播互动
export const queryInfoDocI = params => post('/door/study/queryInfoDocI', params)//资料左侧
export const studyQueryChars = params => post('/door/study/queryChars', params)//文字资料
export const studyQueryVideos = params => post('/door/study/queryVideos', params)//视频资料
export const selectInfoList = params => post('/door/infoContentE/selectInfoList', params)//信息资讯

export const queryUser = id => post('/door/course/queryUser/'+ id)//个人用户信息查询
export const accountLogin = params => post('/accountLogin', params)//账号密码登录授权
export const sendcode = params => get('/code', params)//验证码
export const register = params => post('/register', params)//企业员工注册
export const registerByTel = params => post('/registerByTel', params)//手机号注册
export const telLogin = params => post('/telLogin', params)//手机号登录
export const verify = params => get('/verify', params)//验证用户登录状态token
export const queryComsList = params => post('/queryComsList', params)//企业查询
export const logout = params => post('/logout',params)//退出登录


export const queryCourseHoursStatistics = params => post('/door/center/queryCourseHoursStatistics', params)//我的各类别课程学时统计
export const queryIntegralStatistics = params => post('/door/center/queryIntegralStatistics', params)//我的各类别积分统计
export const queryUserStatisticsInfo = params => post('/door/center/queryUserStatisticsInfo', params)//个人中心-积分、考试记录、学习记录等
export const queryLearnCourse = params => post('/door/centerLearn/queryLearnCourse', params)//课程记录
export const queryLearnLive = params => post('/door/centerLearn/queryLearnLive', params)//直播记录
export const queryHoursRecord = params => post('/door/centerWarnEdu/queryHoursRecord', params)//学时记录
export const queryLearnText = params => post('/door/centerLearn/queryLearnText', params)//文字资料记录
export const queryLearnVideo = params => post('/door/centerLearn/queryLearnVideo', params)//视频资料记录
export const centerNotequeryCourseNote = params => post('/door/centerNote/queryCourseNote', params)//课堂笔记记录
export const queryIntegralRank = params => post('door/centerIntegral/queryIntegralRank', params)//积分排名
export const queryIntegralRecord = params => post('door/centerIntegral/queryIntegralRecord', params)//积分记录
export const queryExamRecord = params => post('/door/examRecord/queryExamRecord', params)//考试记录
export const centerqueryExamRecord = params => post('/door/centerExamRecord/queryExamRecord', params)//考试记录
export const queryWarnEduRecord = params => post('/door/centerWarnEdu/queryWarnEduRecord', params)//警示教育记录
export const queryWrongTitle = params => post('/door/centerWrongTitle/queryWrongTitle', params)//错题报告
export const examRecordselect = params => post('/door/examRecord/selectErrorQuestionListByQuestionType', params)//根据题型查看错题
export const selectErrorQuestionList = params => post('/door/examRecord/selectErrorQuestionList', params)//错题类型报告
export const queryWatchRecord = params => post('/door/study/queryWatchRecord', params)//学习记录查询（直播、文字资料）
export const insertWatchRecord = params => post('/door/study/insertWatchRecord', params)//学习记录插入（直播、文字资料）


export const getExamListForDoor = params => post('/door/exam/getExamListForDoor', params)//考试列表
export const beginExam = params => post('/door/examRecord/beginExam', params)//开始考试
export const testExam = params => post('/door/examRecord/testExam', params)//开始考试
export const updateExamAnswerRecord = params => post('/door/examRecord/updateExamAnswerRecord', params)//保存题目
export const submitExam = params => post('/door/examRecord/submitExam', params)//提交试卷
export const sendCertificate = params => post('/door/examRecord/sendCertificate', params)//发放证书
export const examRecordqrcode = params => post2('/door/examRecord/qrcode',params)//生成证书二维码
export const queryCertificate = params => post('/door/examRecord/queryCertificate', params)//查询证书
export const questionOptionquery = params => post('/door/examRecord/queryQuestionOption', params)//通过id查询选项


